.admin-layout {
  min-height: 100vh;
}

.admin-sider {
  background: #001529;
}

.admin-logo {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
  border-bottom: 1px solid #002140;
}

.admin-logo h2 {
  margin: 0;
  color: white;
}

.admin-header {
  background: white;
  padding: 0 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.trigger-btn {
  font-size: 18px;
  color: #666;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.change-password-btn {
  color: #666;
}

.change-password-btn:hover {
  color: #52c41a;
}

.logout-btn {
  color: #666;
}

.logout-btn:hover {
  color: #1890ff;
}

.admin-content {
  padding: 24px;
  background: #f0f2f5;
  min-height: calc(100vh - 64px);
}

/* 页面头部样式 */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px 24px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-header h2 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

/* 管理组件通用样式 */
.homepage-management,
.category-management,
.product-management {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 表格样式 */
.ant-table-wrapper {
  background: white;
  border-radius: 8px;
}

.ant-table-thead > tr > th {
  background: #fafafa;
  font-weight: 600;
}

/* 价格样式 */
.current-price {
  font-size: 16px;
  font-weight: bold;
  color: #ff4d4f;
}

.original-price {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
  margin-top: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .admin-content {
    padding: 16px;
  }
  
  .page-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .page-header h2 {
    font-size: 18px;
  }
  
  .homepage-management,
  .category-management,
  .product-management {
    padding: 16px;
  }
  
  .header-right {
    gap: 4px;
  }
  
  .change-password-btn,
  .logout-btn {
    font-size: 12px;
    padding: 4px 8px;
  }
}

/* 模态框样式 */
.ant-modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

/* 表单样式 */
.ant-form-item-label > label {
  font-weight: 500;
}

/* 按钮样式 */
.ant-btn-primary {
  background: #1890ff;
  border-color: #1890ff;
}

.ant-btn-primary:hover {
  background: #40a9ff;
  border-color: #40a9ff;
} 